package com.zzyk.main.service;


import com.zzyk.main.model.pojo.RolePermission;
import com.zzyk.main.model.pojo.SysPermission;
import com.zzyk.main.model.vo.PermissionNode;

import java.util.List;
import java.util.Set;

public interface ISysPermissionService {
    public SysPermission getPermission(int permissionId);

    public SysPermission getPermission(String permissionName);

    public List<SysPermission> getPermissionList(SysPermission sysPermission);

    public int addRolePermission(List<RolePermission> rolePermissionList);

    public int deleteRolePermission(RolePermission rolePermission);

    public int deleteRolePermissionByRoleId(int roleId);

    public Set<SysPermission> getPermissionSetByRoleId(int roleId);

    public PermissionNode getPermissionTree();
}
